home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / bc31p1.zip / BC31P1.BAT < prev    next >
DOS Batch File  |  1992-06-29  |  2KB  |  93 lines

  1. echo off
  2.  
  3. if not exist cs.lib goto NOSMALLLIB
  4. echo Patching small library...
  5. tlib cs.lib -vnewf.obj -vnewvf.obj
  6. ren vnewf.obs vnewf.obj
  7. ren vnewvf.obs vnewvf.obj
  8. tlib cs.lib +vnewf.obj +vnewvf.obj
  9. del vnewf.obj
  10. del vnewvf.obj
  11. cls
  12. if errorlevel 1 goto ERROR_NOTLIB
  13. goto MEDIUM
  14. :NOSMALLLIB
  15. echo Cannot find CS.LIB to patch small library.
  16.  
  17. :MEDIUM
  18. if not exist %1cm.lib goto NOMEDLIB
  19. echo Patching medium library...
  20. tlib cm.lib -vnewf.obj -vnewvf.obj
  21. ren vnewf.obm vnewf.obj
  22. ren vnewvf.obm vnewvf.obj
  23. tlib cm.lib +vnewf.obj +vnewvf.obj
  24. del vnewf.obj
  25. del vnewvf.obj
  26. cls
  27. goto COMPACT
  28. :NOMEDLIB
  29. echo Cannot find CM.LIB to patch medium library.
  30.  
  31. :COMPACT
  32. if not exist %1cc.lib goto NOCOMPACTLIB
  33. echo Patching compact library...
  34. tlib cc.lib -vnewf.obj -vnewvf.obj
  35. ren vnewf.obc vnewf.obj
  36. ren vnewvf.obc vnewvf.obj
  37. tlib cc.lib +vnewf.obj +vnewvf.obj
  38. del vnewf.obj
  39. del vnewvf.obj
  40. cls
  41. goto LARGE
  42. :NOCOMPACTLIB
  43. echo Cannot find CC.LIB to patch compact library.
  44.  
  45. :LARGE
  46. if not exist %1cl.lib goto NOLARGELIB
  47. echo Patching large library...
  48. tlib cl.lib -vnewf.obj -vnewvf.obj
  49. ren vnewf.obl vnewf.obj
  50. ren vnewvf.obl vnewvf.obj
  51. tlib cl.lib +vnewf.obj +vnewvf.obj
  52. del vnewf.obj
  53. del vnewvf.obj
  54. cls
  55. goto HUGE
  56. :NOLARGELIB
  57. echo Cannot find CL.LIB to patch large library.
  58.  
  59. :HUGE
  60. if not exist %1ch.lib goto NOHUGELIB
  61. echo Patching huge library...
  62. tlib ch.lib -vnewf.obj -vnewvf.obj
  63. ren vnewf.obh vnewf.obj
  64. ren vnewvf.obh vnewvf.obj
  65. tlib ch.lib +vnewf.obj +vnewvf.obj
  66. del vnewf.obj
  67. del vnewvf.obj
  68. cls
  69. goto DONE
  70. :NOHUGELIB
  71. echo Cannot find CH.LIB to patch huge library.
  72. goto DONE
  73.  
  74. :ERROR_NOOBJ
  75. echo An patch object module is not in the current directory.  Please use
  76. echo unzip on bc31p1.zip and try to patch again.
  77. goto DONE
  78.  
  79. :ERROR_NOTLIB
  80. echo A problem was encountered executing TLIB.  Either the Turbo Librarian
  81. echo cannot be located along your DOS path, or an error occurred.  Consult
  82. echo your Borland C++ Users Guide for more information on why TLIB might
  83. not echo be operating correctly.
  84.  
  85. :DONE
  86. cls
  87. echo Done.
  88. echo Two object modules named VNEWF.OBJ, VNEWVF.OBJ, have been removed for
  89. echo each of the libraries for each of the five memory models small, medium,
  90. echo compact, large, and huge.  These modules have been replaced by the
  91. echo updated version of NEW in their respective libraries.
  92.  
  93.